<?php
/*
Cogumelo v0.1 - Map-Experience
Copyright (C) 2008 Innoto Gestión para el Desarrollo Social S.L. <mapinfo@map-experience.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
USA.
*/

//
// useradmin abstract DAO
//

require_once("Classes/Model/DAO/DAO.inc");

abstract class UseradminDAO extends DAO {
	
  
    
	function __construct()
	{
		parent::__construct();    
	}

	//
	//	Create New User from useradminVO
	//
	abstract function Create($connection, $useradmin);
	
	//
	//	Totally delete of an User
	//
	abstract function Destroy($connection, $useradmin);
	
	//
	//	Find an User by ID
	//
	//	Return: useradminVO
	abstract function Find($connection, $id);
	
	//
	//	Find an User by login
	//
	//	Return: useradminVO	
	abstract function FindByLogin($connection, $login);
	
	//
	//	Authenticate user
	//
	//	Return: bool	
	abstract function AuthenticateUseradmin($connection, $login, $pass);
	
	
	//
	//	Generic list
	//
	//	Return: array of useradminVO 's
	abstract function ListAll($connection, $RANGE, $ORDER, $filter);
	//
	//	rows number
	abstract function ListAllCount($connection, $filter);
	
	//
	//	Update an useradmin passwd.
	//
	abstract function UpdatePasswd($connection, $newupdateadmin);
	
	//
	//	Update an useradmin lastaccess time.
	//
	abstract function UpdateTime($connection, $useradmin);
	
	
}
?>